﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Utilify.Platform.Demo.RayTracer
{
    [Serializable]
  
    [XmlRootAttribute("Settings")]
    public class RequestConfig
    {
        public RequestConfig(string spreadType, string cdsDefaultLegConvention, string cdsPremiumLegConvention, string dayCountConvention)
        {
            SpreadType = spreadType;
            CdsDefaultLegConvention = cdsDefaultLegConvention;
            CdsPremiumLegConvention = cdsPremiumLegConvention;
            DayCountConvention = dayCountConvention;
            Pilars = new List<string> {"6M", "1Y", "2Y", "3Y", "4Y", "5Y", "7Y", "10Y", "15Y"};
        }

        public RequestConfig()
        {
        }

        [System.Xml.Serialization.XmlElement("id")] 
        public string Id
        { get; set; }
        
        //[XmlArrayItem (typeof(string),ElementName = "Term")]
        public List<string> Pilars;

        [System.Xml.Serialization.XmlElement()]
        public string SpreadType
            { get; set; }

        [System.Xml.Serialization.XmlElement()]
        public string CdsDefaultLegConvention
            { get; set; }

        [System.Xml.Serialization.XmlElement()]
        public string CdsPremiumLegConvention
            { get; set; }

        [System.Xml.Serialization.XmlElement()]
        public string DayCountConvention
            { get; set; }

  
     
    
      
    }
}
